import * as API from "@/api/api";

//商务客户
export default {
    getBusinessAccountList: params => {
        return API.POST("/user/getBusinessAccountList", params, null, 1);
    },
    doAddBusinessAccount: params => {
        return API.POST("/user/doAddBusinessAccount", params);
    },
    doEditBusinessAccount: params => {
        return API.POST("/user/doEditBusinessAccount", params);
    },
    doDelBusinessAccount: params => {
        return API.POST("/user/doDelBusinessAccount", params, null, 1);
    },
    getBusinessAccountMsg: params => {
        return API.POST("/user/getBusinessAccountMsg", params, null, 1);
    },
    doGetBusinessAccountHas: params => {
        return API.POST("/user/doGetBusinessAccountHas", params, null, 1);
    },

    //跟进记录
    viewFollowBusinessList: params => {
        return API.POST("/user/viewFollowBusinessList", params, null, 1);
    },
    doAddFollowBusinessList: params => {
        return API.POST("/user/doAddFollowBusinessList", params);
    },
    doEditFollowBusinessList: params => {
        return API.POST("/user/doEditFollowBusinessList", params);
    },
    doDelFollowBusinessList: params => {
        return API.POST("/user/doDelFollowBusinessList", params, null, 1);
    },

    getHistoryBusinessAndAccountTimeList: params => {
        return API.POST("/user/getHistoryBusinessAndAccountTimeList", params, null, 1);
    },

    doUpdateBusinessInsured: params => {
        return API.POST("/user/doUpdateBusinessInsured", params, null, 1);
    },
};
